<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="../js/angular.min.js"></script>
	</head>
	<body ng-app="myapp" ng-controller="myctrl">
		<div>
			<input type="text" name="nam" ng-model="name" />
			<input type="button" name="clear" value="清空" ng-click="name=''" />
		</div>
		<div>
			hello,{{name}}
		</div>
		<script type="text/javascript">
			var myapp = angular.module("myapp",[]);
			myapp.controller("myctrl",["$scope",function($scope){
				$scope.name = "wh";
			}]);
		</script>
	</body>
</html>
